package com.sphd.emanu.activity.goodstype;

import android.support.v7.app.AlertDialog;


import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Category;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * @Author Hu
 * @Time 2017/5/20 -- 14:06.
 * @Email 87683202@qq.com
 */

public class GoodstypeContract {
    interface View extends BaseView {

        void setObject( List<Category>  catelist);

        void setRes(int res, AlertDialog alertDialog);

        void setDelRes(int res, SweetAlertDialog alertDialog);
    }

    interface  Presenter extends BasePresenter<View> {
       void getList(int id);
        void addCategory(String name, int org, AlertDialog alertDialog);
        void updateCategory(int id,String name, int org, AlertDialog alertDialog);
        void deleteCategory(int id,SweetAlertDialog alertDialog);
    }
}
